package com.mvc.service.healthmanager;

import java.util.List;
import java.util.Map;

import com.mvc.model.healthmanager.archive.BloodPressure;
/**
 * @author hejie
 *
 */
public interface BloodPressureServiceI {
	public List<BloodPressure> getBloodPressure(BloodPressure bPressure);
	
	public List<BloodPressure> getMaxBloodPressure(BloodPressure bPressure);
	
	/**
	 * 获取最新的血压
	 * @author qingjie
	 * @param bPressure
	 * @return
	 * Date:2015-11-14
	 */
	public BloodPressure getNewBloodPressure(BloodPressure bPressure);
	
	/**
	 * 根据个人id,获取数据并且拼接json字符串
	 * @author qingjie
	 * @param personId
	 * @return
	 * Datte:2015-11-15
	 */
	public String getDataToJson(String personId);
	
	/**
	 * 获取最新的血压，根据条件
	 * @author qingjie
	 * @param bPressure
	 * @return
	 * Date:2015-11-14
	 */
	public List<BloodPressure> findNewBloodPressure(Map<String, Object> params,String order);
	
	/**
	 * 血压查询 
	 * @author Roy
	 * @param params
	 * @return
	 */
	public List<BloodPressure> findBloodPressure(String personId);
	
	/**
	 * 保存或更新血压
	 * @param bp
	 */
	public BloodPressure saveOrUpdate(BloodPressure bp);
	
}
